package com.iflytek.uoamp.agent.core.sender.monitorsender.requestObj;

import com.iflytek.uoamp.agent.core.sender.monitorsender.monitorinterface.IItem;

import java.util.List;

public class MonitorPluginType implements IItem{
	private String types;
	private String ip;
	private List<String> updateNameList;

	public MonitorPluginType(){
		
	}
	
	public List<String> getUpdateNameList() {
		return updateNameList;
	}

	public void setUpdateNameList(List<String> updateNameList) {
		this.updateNameList = updateNameList;
	}

	public MonitorPluginType(String ip,String types,List<String> updateNameList){
		this.ip = ip;
		this.types = types;
		this.updateNameList = updateNameList;
	}
	
	public String getTypes() {
		return types;
	}

	public void setTypes(String types) {
		this.types = types;
	}

	public String getIP() {
		return ip;
	}

	public void setIP(String iP) {
		ip = iP;
	}

	@Override
	public String caseToString() {
		return "";
	}

	@Override
	public String getSendPath() {
		if(updateNameList==null || updateNameList.size()==0){
			return "initmonitoritem";
		}else{
			return "getmonitoritem";
		}
	}

	@Override
	public String getSendListPath() {
		if(updateNameList==null || updateNameList.size()==0){
			return "initmonitoritem";
		}else{
			return "getmonitoritem";
		}
	}
	
}
